#version 450 core
layout (triangles) in;
layout (triangle_strip, max_vertices = 3) out;
out vec3 dist;
void main()
{
    gl_Position = gl_in[0].gl_Position;
    dist = vec3(1, 0, 0);
    EmitVertex();
    gl_Position = gl_in[1].gl_Position;
    dist = vec3(0, 1, 0);
    EmitVertex();
    gl_Position = gl_in[2].gl_Position;
    dist = vec3(0, 0, 1);
    EmitVertex();
    EndPrimitive();
}
